package com.dict.mybatis.lab.entity;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
/**
 * MyBatis 映射的实体对象必须提供一个无参构造方法
 * */
@NoArgsConstructor
public class User2 {

    /**
     * 主键ID
     */
    private String id;

    private String name;

    private String sex;

    private String phone;

    public User2(String id, String name, String sex, String phone) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.phone = phone;
    }
}
